<?php

namespace App\Miya\Providers;

use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\ServiceProvider;

class Miya extends ServiceProvider
{
    /**
     * Register services.
     *
     * @return void
     */
    public function register()
    {
    }

    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {
        $this->loadViewsFrom(app_path('Miya/Resources'), 'miya');
        $this->loadViewsFrom(base_path('tql'), 'tql');

        if (!App::runningInConsole() && !app('falsifyCheck')->check()) {
            fuckYou(500, 'miya.file_falsify', true);
        }

        if (!App::runningInConsole() && !app('allow')->verify()) {
            fuckYou(500, 'miya.oms_link_fail');
        }
    }
}
